package com.ruoyi.monitor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.monitor.mapper.MonitorPartMapper;
import com.ruoyi.monitor.domain.MonitorPart;
import com.ruoyi.monitor.service.IMonitorPartService;
import com.ruoyi.common.core.text.Convert;

/**
 * 局部热处理实时数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-12
 */
@Service
public class MonitorPartServiceImpl implements IMonitorPartService 
{
    @Autowired
    private MonitorPartMapper monitorPartMapper;

    /**
     * 查询局部热处理实时数据
     * 
     * @param id 局部热处理实时数据主键
     * @return 局部热处理实时数据
     */
    @Override
    public MonitorPart selectMonitorPartById(Long id)
    {
        return monitorPartMapper.selectMonitorPartById(id);
    }

    /**
     * 查询局部热处理实时数据列表
     * 
     * @param monitorPart 局部热处理实时数据
     * @return 局部热处理实时数据
     */
    @Override
    public List<MonitorPart> selectMonitorPartList(MonitorPart monitorPart)
    {
        return monitorPartMapper.selectMonitorPartList(monitorPart);
    }

    /**
     * 新增局部热处理实时数据
     * 
     * @param monitorPart 局部热处理实时数据
     * @return 结果
     */
    @Override
    public int insertMonitorPart(MonitorPart monitorPart)
    {
        return monitorPartMapper.insertMonitorPart(monitorPart);
    }

    /**
     * 修改局部热处理实时数据
     * 
     * @param monitorPart 局部热处理实时数据
     * @return 结果
     */
    @Override
    public int updateMonitorPart(MonitorPart monitorPart)
    {
        return monitorPartMapper.updateMonitorPart(monitorPart);
    }

    /**
     * 批量删除局部热处理实时数据
     * 
     * @param ids 需要删除的局部热处理实时数据主键
     * @return 结果
     */
    @Override
    public int deleteMonitorPartByIds(String ids)
    {
        return monitorPartMapper.deleteMonitorPartByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除局部热处理实时数据信息
     * 
     * @param id 局部热处理实时数据主键
     * @return 结果
     */
    @Override
    public int deleteMonitorPartById(Long id)
    {
        return monitorPartMapper.deleteMonitorPartById(id);
    }
}
